package org.lq.ht.view.login;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JPasswordField;
import javax.swing.JButton;

public class Login extends JFrame {

	private JPanel contentPane;
	private JPasswordField passwordField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Login frame = new Login();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Login() {
		setTitle("登录系统");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 546, 527);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label = new JLabel("酒店管理系统");
		label.setForeground(Color.BLUE);
		label.setFont(new Font("宋体", Font.BOLD, 33));
		label.setBounds(141, 70, 219, 56);
		contentPane.add(label);
		
		JLabel label_1 = new JLabel("操作员工号:");
		label_1.setFont(new Font("宋体", Font.BOLD, 22));
		label_1.setBounds(90, 163, 132, 71);
		contentPane.add(label_1);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setBounds(232, 178, 167, 37);
		contentPane.add(comboBox);
		
		JLabel label_2 = new JLabel("工号密码:");
		label_2.setFont(new Font("宋体", Font.BOLD, 22));
		label_2.setBounds(110, 262, 113, 50);
		contentPane.add(label_2);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(232, 267, 167, 35);
		contentPane.add(passwordField);
		
		JButton button = new JButton("确定");
		button.setFont(new Font("宋体", Font.PLAIN, 18));
		button.setBounds(90, 362, 97, 37);
		contentPane.add(button);
		
		JButton button_1 = new JButton("取消");
		button_1.setFont(new Font("宋体", Font.PLAIN, 18));
		button_1.setBounds(302, 362, 97, 37);
		contentPane.add(button_1);
	}
}
